//
//  JigSawButtonContainerView.h
//  JigSawKiosk
//
//  Created by Stulberg on 10-10-17.
//  Copyright 2010 FruitonLabs. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import <Quartz/Quartz.h>
#import <QTKit/QTKit.h>

#import "JigSawMovieButton.h"

#import "JigSawButtonStripView.h"

#import "JigSawStripSelectLayer.h"


@interface JigSawButtonContainerView : NSView {
	CALayer *rootLayer ;
	
	JigSawButtonStripView *stripView ;
		
	JigSawStripSelectLayer *stripSelectLayer ;
	
	int selectedStrip ;
	NSTimer *stopMoviesAtStripsTimer ;
	
	CALayer *hotKeyLayer ;
	
	NSMutableArray *urlArray ;
	
	int currentPreview ;
	
	int buttonPressed ;
	
	BOOL isDisabled ;
	
	// delegate for the callback
	id delegate ;
}

- (id)initWithURLS:(NSRect)frame urls:(NSMutableArray*)urls ;

	
-(void) setupLayers ;

-(void) startPreviews ;
-(void) stopAllPreviews ;

- (void)mouseIn:(CGPoint)cgloc ;

-(void) startStopPreviewsAtStrip ;

- (void) stopMoviesAtStripsTimerMethod:(NSTimer *)timer ;

-(void) setIsDisabled:(BOOL) val ;
- (int) getSelectedStrip ;
// delagate methods
- (void)setDelegate:(id)aDelegate ;
- (void)delegatedMethod ;

@property (nonatomic, retain) CALayer *rootLayer ;
@property (nonatomic, retain) CALayer *hotKeyLayer ;
@property (nonatomic, retain) JigSawButtonStripView *stripView ;

@end

@interface NSObject(ButtonContainerDelegateMethods)
- (void)buttonContainerCallback:(JigSawButtonContainerView *)myJigSawButtonContainerView buttonNumber:(int) buttonNumber;
@end